import request from '@/utils/request'

/**
 *获取-权限点列表
 */
export const GetUswrAPI = () => {
  return request({
    url: '/sys/permission'
  })
}

/**
 * 新增
 */
export function addPermissionApi(data) {
  return request({
    method: 'post',
    url: '/sys/permission',
    data
  })
}

// 删除权限
export function delPermissionApi(id) {
  return request({
    method: 'delete',
    url: `/sys/permission/${id}`
  })
}
